/**
 * Created by Administrator on 2017/3/11.
 */
import React from 'react';
export  default class Search extends React.Component{
    render(){
        return(
            <div className="search">
                
                <div className="search_1">
                    <h2>站内搜索</h2>
                </div>
                <form>
                    <input className="search_text"/>
                    <button type="submit" className="sub_btn">搜索</button>
                </form>
                <div className="zp_pic">
                    <a>
                        {
                            this.props.pic.map(function (img,idx) {
                                return(
                                    <img src={img.src} alt={img.alt} key={'pic'+idx}/>
                                )
                            })
                        }
                    </a>
                </div>
            </div>
        )
    }
}